<template>
  <div>
    <!-- -->
    <!-- 条件查询 -->
    <searchBar @handleQuery="handleQuery"></searchBar>
    <!-- 操作 -->
    <operationBar @selectList="selectList"></operationBar>
    <!-- 表格 -->
    <operationTable ref="selloffreftable"></operationTable>
  </div>
</template>

<script>
export default {
  name: "selloff",
  // dicts: ['sys_notice_status', 'sys_notice_type'],
  components: {
    searchBar: () => import('./search-bar/index.vue'),
    operationBar: () => import('./operation-bar/index.vue'),
    operationTable: () => import('./operation-table/index.vue'),
    // operationBar: ()=> import('./operation-bar/index.vue')
    // operationTable: ()=> import('./operation-table/index.vue')
  },
  data () {
    return {
      activeName: '1'
    };
  },
  created () {
  },
  methods: {
    /** 搜索按钮操作 */
    handleQuery (value) {
      this.$refs['selloffreftable'].queryParams.pageNum = 1;
      this.$refs['selloffreftable'].getList(value);
    },
    selectList () {
      this.$refs['selloffreftable'].getList();
    },
  }
};
</script>
